const targetId = null
const checkMessage = function(that) {
	// 消息提示
	that.$http.request({
		url: '/organizations/web/message/msg'
	}).then(res => {
		res = res.data;
		if (res.result) {
			if (res.count > 0) {
				uni.setTabBarBadge({
					index: 2,
					text: res.count + ''
				});
			} else {
				uni.removeTabBarBadge({
					index: 2
				})
			}
		}
	})
}

export default {
	targetId,
	checkMessage
}
